package com.firexxx.study.designmodel.mediator;

/**
 * @description: TODO
 * @throws:
 * @author: zhuangzhang2
 * @date: 2019/11/14 15:19
 */
public class Main {

    public static void main(String[] args) {
        One userOne = new One();
        Two userTwo = new Two();

        Mediator mediator = new Mediator();
        mediator.add(userOne);
        mediator.add(userTwo);

        mediator.relay("two");
    }
}